request_header_s = ['HTTP_HOST', 'HTTP_ACCEPT_ENCODING', 'HTTP_USER_AGENT']
standard_s = ['HTTP_HOST', 'HTTP_CONNECTION', 'HTTP_CACHE_CONTROL',
              'HTTP_UPGRADE_INSECURE_REQUESTS', 'HTTP_USER_AGENT',
              'HTTP_ACCEPT', 'HTTP_ACCEPT_ENCODING', 'HTTP_ACCEPT_LANGUAGE']
request_header_s = ['HTTP_HOST', 'HTTP_CONNECTION', 'HTTP_CACHE_CONTROL', 'HTTP_UPGRADE_INSECURE_REQUESTS', 'HTTP_USER_AGENT', 'HTTP_ACCEPT', 'HTTP_ACCEPT_ENCODING', 'HTTP_ACCEPT_LANGUAGE']

if __name__ == '__main__':
    for standard_header in standard_s:
        if standard_header in request_header_s:
            request_header_s = request_header_s[request_header_s.index(standard_header):]
            print("成功")
        else:
            print("失败")